import React from "react";
// import ReactDOMServer from "react-dom/server";
import NewList from '../../component/newsList';
import ReactDOM from "react-dom";
// export default class View extends React.Component {
  

//     static getInitData(){

//     }
//     render() {
//       const {dataList,status } = this.props;
//       const html = ReactDOMServer.renderToString(<NewList dataList={dataList} status={status}/>);
     
//       return (
        
//       );
//     }
//   }
// console.log("NewList",NewList)
// var getData =  NewList.getInitData();
// // console.log()
// getData.then((data)=>{
//   console.log("NewList====",data)
// });

  export default (NewList)
  if (__CLIENT__) {
    const data = window.$$data;
    console.log('window.$$data===',data)
    ReactDOM.hydrate(<NewList dataList={data} status={true}/>, document.getElementById('root'));
  }